package com.i7.openfire.archive.xep.xep0136;

import org.jivesoftware.openfire.XMPPServer;

import com.google.common.collect.Lists;
import com.i7.openfire.archive.xep.AbstractXepSupport;

/**
 * Encapsulates support for
 * <a href="http://www.xmpp.org/extensions/xep-0136.html">XEP-0136</a>.
 */
public class Xep0136Support extends AbstractXepSupport {

	private static final String NAMESPACE_AUTO = "urn:xmpp:archive:auto";
	private static final String IQ_NAMESPACE = "urn:xmpp:archive";

	public Xep0136Support(XMPPServer server) {
		super(server, NAMESPACE_AUTO, IQ_NAMESPACE, "XEP-0136 IQ Dispatcher");

		iqHandlers = Lists.newArrayList();
		iqHandlers.add(new IQListHandler());
	}
}
